<!DOCTYPE html>  
<meta charset="utf-8" />  
<title>WebSocket Test</title>  
<script language="javascript"type="text/javascript">  
    //var wsUri ="ws://tx.baimeiyx.com/ws"; 
	//var wsUri ="ws://119.3.226.13:8088/"; 
	var wsUri ="ws://127.0.0.1:80/webSocket/123"; 
    var output;  
    var w
	for(var i = 0 ; i<1;i++){
		 w = new WebSocket(wsUri); 
	
	  
	}
		w.onopen = function(evt) { 
			w.send('{"type":"onlineStatus","uId":"'+i+'"}'); 
		}; 
	
		w.onmessage = function(evt) { 
			console.log(evt)
		}; 
	

 	
</script>  
<h2>WebSocket Test</h2>  
<div id="output"></div>  
</html>